package com.szsfm.vehiclemanagement.util;

import android.content.Context;

/**
 * Created by zhoubigbo on 2017/11/27.
 */
public class ApkUtil {

    public static String getVersionname(Context context) {
        try {
            String pkName = context.getPackageName();
            String versionName = context.getPackageManager().getPackageInfo(pkName, 0).versionName;
            return versionName;
        } catch (Exception e) {
        }
        return null;
    }

}
